/* ========================================================================= */
/* ------------------------------------------------------------------------- */
/*!		
  \file			main.h
  \date			Aug 2011
  \author		TNick

  \brief		Contains definitions for ...


 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @n
 Please read ReadMe.txt and Licence.txt in root folder @n
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @n

*/
/* ------------------------------------------------------------------------- */
/* ========================================================================= */
#ifndef __MAIN_INC__
#define __MAIN_INC__
//
//
//
//
/*  INCLUDES    ------------------------------------------------------------ */

/*  INCLUDES    ============================================================ */
//
//
//
//
/*  DEFINITIONS    --------------------------------------------------------- */

class       MainWindow;
class       QNetworkAccessManager;
class       QTimer;
class       QNetworkDiskCache;

/* uncomment following line to use QMutex instead of QReadWriteLock */
// #define PREFER_MUTEXES      1

/* uncomment following line to trace execution (output text to indicate code flow) */
//#define     FOLLOW_EXECUTION     1

/// default time between two consecutive requests for pages
#define     DEFAULT_SEARCH_INTERVAL     10000





#ifdef  FOLLOW_EXECUTION
#define TRACE_EXECUTION(a,b,c)     qDebug() << __FUNCTION__ << ": " << a << b << c
#else
#define TRACE_EXECUTION(a,b,c)
#endif



/*  DEFINITIONS    ========================================================= */
//
//
//
//
/*  DATA    ---------------------------------------------------------------- */

/// hold pointer to main gui object in global variable for easy access
extern      MainWindow *                g_MW;
extern      QNetworkAccessManager *     l_manager ;
extern      QTimer *                    app_timer;
extern      QNetworkDiskCache *         main_cache ;


/*  DATA    ================================================================ */
//
//
//
//
/*  FUNCTIONS    ----------------------------------------------------------- */

	
/*  FUNCTIONS    =========================================================== */
//
//
//
//
#endif // __MAIN_INC__
/* ------------------------------------------------------------------------- */
/* ========================================================================= */
